package com.innjia.sys.service;

import com.innjia.sys.entity.UserEntity;

import java.util.Map;

/**
 * OAuth2 协议的用户登录
 * <br>
 * 2017-11-19
 *
 * @author zhouxianglh@gmail.com
 */
public interface OAuth2LoginService {
    String KEN_TOKEN = "token";
    String KEN_UID = "uid";
    String KEY_AUTH_CODE = "authCode";

    /**
     * 获取token
     *
     * @param params
     * @return
     */
    Map<String, String> getAccessToken(Map<String, String> params);

    /**
     * 获取用户信息
     *
     * @param params
     * @return
     */
    UserEntity getUserInfo(Map<String, String> params);

}
